[IA64] fix memory leak when domVTI is created
authorawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Thu, 3 Aug 2006 17:05:59 +0000 (11:05 -0600)
committerawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Thu, 3 Aug 2006 17:05:59 +0000 (11:05 -0600)
commit055e99c3b63f9a9b95326f8313c8c2d13040becb
treef02f66347c5e2c6c50d7d5fbdb7b14f9a10e45d6
parentf108962ebc65ecac007af38eaf944c8697f7bf6a
[IA64] fix memory leak when domVTI is created

privregs clean up.
memory leak occures when VT-i domain is created.
When domain is created, xend sets max vcpu before domain setup.
So alloc_vcpu_struct() think the domain is normal domU, not domVTI.
And next xend set the domain as domVTI. so the memory is allocated for
domU won't be freed.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen/arch/ia64/asm-offsets.c
xen/arch/ia64/xen/dom0_ops.c
xen/arch/ia64/xen/domain.c
xen/include/asm-ia64/domain.h